<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
	String path = request.getContextPath();
	/* 参数 */
		String type = request.getParameter("type");/*类型 1是许可  2是处罚 */
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="referrer" content="always">
<meta content="#2932e1" name="theme-color">
<title>中国安全防范技术行业协会后台管理系统</title>
<jsp:include page="../../public/public.jsp" />
  </head>
  <script type="text/javascript">
	var typeid = <%=type %>;
</script>
  <body>
  	<div style="width:100%; height: 390px; ">
		<!--地区列表 -->
		<div style="float: left;width:20%;height: 385px;">
			<table id="dgArea" style="width:200px;height:375px;"></table>
		</div>
		<div style="float: left;height: 385px;text-align: center;line-height:365px;">
			<span style="font-size: 20px;">==></span>
		</div>
		<!--部门列表 -->
		<div style="float: left;width: 20%;height: 385px;">
			<table id="dgDepartment" style="width:200px;height:375px;"></table>
		</div>
		<div style="float: left;height: 385px;text-align: center;line-height:365px;">
			<span style="font-size: 20px;">==></span>
		</div>
		<!-- 正文列表 -->
		<div style="float: left;width:50%;height: 385px;">
			<table id="dgcontent" style="width:100%;height:375px;"></table>
		</div>
	</div>
	<!-- 弹出窗 -->
	<div id="DepartmentWinId" class="easyui-window" align="center"> 
	  <form id="addForm" method="post" >
		  		<table align="center" style="margin-top:20px">
		    		<tr style="height: 30px" id="codeId">
		    			<td id="bm">部门编码:</td>
		    			<td>
		    			<input id="departmentCodeId"  class="easyui-textbox" data-options="width:150"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td id="mc">部门名称:</td>
		    			<td>
		    			<input id="departmentNameId"  class="easyui-textbox" data-options="width:150,required:true"/>
		    			</td>
		    		</tr>
		    		
		   		</table>
			</form>
	</div> 
	<script type="text/javascript" src="../../them/js/area.js"></script>	
	<script type="text/javascript">
	//新增修改公示正文内容
	function addupdateGshtml(states,id){
		if(states=="add"){
			var url='toPage?urlStr=gshtml&states=add&ckType=<%=type%>&areaid='+id;
			backValue =window.open(url,"",'edge:Raised;center:Yes;help:Yes;resizable:no;status:No;dialogWidth:1200px;DialogHeight=650px');
		}else if(states=="edit"){
			var row = $('#dgcontent').datagrid('getSelected');
			var url='toPage?urlStr=gshtml&states=edit&ckType=<%=type%>&areaid='+id+'&sysid='+row.id;
			backValue =window.open(url,"",'edge:Raised;center:Yes;help:Yes;resizable:no;status:No;dialogWidth:1200px;DialogHeight=650px');
		}
	}
</script>
  </body>
</html>
